package com.ilink.teacherservice.service;


import com.ilink.ilinkcommon.domain.PO.studyservice.StudyCourseFile;
import com.ilink.ilinkcommon.domain.R;
import com.ilink.ilinkapi.dto.teacher.SortOrderUpdateDTO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface StudyCourseFileService {

    @Transactional
    boolean updateSortOrder(Long parentId, List<Long> sortedIds);

    @Transactional
    R moveSection(Long sectionId, Long targetChapterId, Long courseId, int sortOrder);

    @Transactional
    R moveDocumentResource(Long resourceId, StudyCourseFile newFolder, Long courseId,int sortOrder);
    @Transactional
    R moveAudioVideoResource(Long resourceId, StudyCourseFile newFolder, Long courseId,int sortOrder);
    @Transactional
    R moveWebResource(Long resourceId, StudyCourseFile newFolder, Long courseId,int sortOrder);
}
